package de.akquinet.android.archetypes.tatt.helper;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

import android.content.Context;
import android.widget.Toast;
import de.akquinet.android.archetypes.tatt.entity.User;

public class UserDBHelper {
	private static final String DATABASE_NAME = "tattdb";
	private static final String DATABASE_USERNAME = "root";
	private static final String DATABASE_PASSWORD = "adminadmin";
	private static final String DATABASE_HOST = "192.168.1.11:3306";
	
	public UserDBHelper() {
		super();
		String conexionMySQLURL = "jdbc:mysql://"+DATABASE_HOST+"//"+DATABASE_NAME;	
  	  try {
		Class.forName("com.mysql.jdbc.Driver");
		Connection con = DriverManager.getConnection(conexionMySQLURL, 
  			  DATABASE_USERNAME, DATABASE_PASSWORD);
		
	} catch (ClassNotFoundException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	} catch (SQLException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}  
  	  
	}


	public User getUser(String username, String password) {
		
		// TODO Auto-generated method stub
		return null;
	}

}
